cmake_minimum_required(VERSION 3.15)
project(Matching.utils)

message(STATUS "source:" ${PROJECT_SOURCE_DIR})
message(STATUS "lib    :" ${PROJECT_BINARY_DIR}/lib)

#set(CMAKE_C_FLAGS_DEBUG "-Wall -fPIC -Wno-strict-aliasing -Wno-uninitialized -g -o0 -rdynamic -std=gnu99")
#set(CMAKE_CXX_COMPILER g++)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -O3")
set (CMAKE_BUILD_TYPE Debug)
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -Wall -g -ggdb")

include_directories(
        /usr/include
        /usr/include/mysql
        /usr/local/include
        .
        ../network
)
FILE(GLOB SRC_FILE_LIST "*.cpp")
#aux_source_directory(.  SRC_FILE_LIST)
add_library(utils STATIC ${SRC_FILE_LIST} )
install(TARGETS utils ARCHIVE DESTINATION lib)